<?php
namespace Admin\Controller;
class  ReviewController extends BaseController{
	function reviewcheck(){
		$this->display();
	}
	function oper(){
		$reviewOb= M('review');
		$re = $reviewOb->select();
		$this->assign('re',$re);
		$this->display();
	}
	function review_del(){
		$id = $_GET['id'];
		$reviewOb = M('review');
		$re =$reviewOb->where("id= $id")
						->delete();
		if($re){
			echo $id;
		}
	}
	function shangjia(){
		$id = $_GET['id'];
		$reviewOb = M('review');
		$data = array(
			'status'=>1,
			);
		$re = $reviewOb->where("id = $id")
					->data($data)
					->save();
		if($re){
			echo $id;
		}
	}
		function xiajia(){
		$id= $_GET['id'];
		$articleOb = M('review');
		$arr= array('status'=>0);
		$re = $articleOb->where("id=$id")
						->data($arr)
						->save();
		if ($re) {
			# code...
			echo $id;
		}
	}
	function feedback_list(){
		$this->display();
	}
}



